package com.parent.elasticsearch.old;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.parent.elasticsearch.old.es.Shards;
import com.parent.elasticsearch.old.result.Hits;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * @Author yan
 * @Date 2023/7/19 0019 13:45
 * @Description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ElasticsearchResult<T> implements Serializable {


    private static final long serialVersionUID = 1022146173812381645L;
    @JsonProperty(value = "took", required = true)
    private Integer took;
    /**
     * 是否超时
     */
    @JsonProperty(value = "timed_out", required = true)
    private Boolean timedOut;
    @JsonProperty(value = "_shards", required = true)
    private Shards shards;
    @JsonProperty(value = "hits", required = true)
    private Hits<T> hits;



}
